<?php
require_once(SERVER_ROOT . '/utils/' . 'MYSQLAdapter.php');

class TipoUsuarioDAO {
	private $adapter;

	public function __construct(){
		$this->adapter = new MYSQLAdapter($GLOBALS['config']);
	}
	public function findByName($name){
		$this->adapter->select("tb_tipo_usuario ","tipo_usuario_nome = '$name'");
		$row = $this->adapter->fetch();
		return $row;
	}
	public function findById($id){
		$this->adapter->select("tb_tipo_usuario ","id_tipo_usuario = '$id'");
		$row = $this->adapter->fetch();
		return $row;
	}
}
